<template>
    <div class="userinfo">
        <div class="user">
            <div class="userphoto">
                <div class="left">
                    <img src="../../assets/img/userphto/头像.png" alt="">
                </div>
                <div class="right">
                    <div class="registered">小鱼儿买买买</div>
                    <div class="phone">
                        <img src="../../assets/img/userinfo/手机.png" alt="">
                        18483128820</div>
                </div>
            </div>
        </div>
        <div class="wallet">
            <div class="Balance">
                <h2>{{Balance}}元</h2>
                我的余额
            </div>
            <div class="Coupon">
                <h2>{{coupon}}个</h2>
                我的优惠券
            </div>
            <div class="integral">
                <h2>{{integral}}分</h2>
                我的积分
            </div>
        </div>
        <div class="service">
            <div class="message">
                <img src="../../assets/img/userinfo/订单.png" alt="">
                <p>我的订单</p>
            </div>
            <div class="message">
                <img src="../../assets/img/userinfo/消 息.png" alt="">
                <p>我的消息</p>
            </div>
            <div class="PointsMall">
                <img src="../../assets/img/userinfo/商 城.png" alt="">
                <p>积分商城</p>
            </div>
            <div class="vipcar">
                <img src="../../assets/img/userinfo/会 员1-01.png" alt="">
                <p>会员卡</p>
            </div>
        </div>
        <div class="more">
            <div class="car">
                <img src="../../assets/img/userinfo/购物车.png" alt="">
                <p>我的购物车</p>
            </div>
            <div class="dowloadapp">
                <img src="../../assets/img/userinfo/下载app.png" alt="">
                <p>下载购物车APP</p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name:'Home',
    data(){
        return {
            Balance:1314,
            coupon:0,
            integral:20
        }
    }
}
</script>
   
<style scoped>
    .user{
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height:150px;
        overflow:scroll;
        background-color: #ff8198;
    }
    .left {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 70px;
        height: 70px;
        padding-left: 10px;
        margin: auto 0;
        clear: both;
    }
    .userphoto img{
        width: 70px;
        height: 70px;
        border-radius: 50%;
    }
    .right{
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: 16px;
        color: white;
        width: 280px;
        height: 100px;
        position: absolute;
        top: 0;
        right: 0;
        transform: translateY(25%);
        /* background-color: red; */
    }
    .registered{
        padding-left: 6px;
    }
    .phone img{
        position: relative;
        bottom: -8px;
        width: 30px;
        height: 30px;
    }
    .wallet{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 130px;
        border-bottom: 10px solid #f2f2f2;
    }
    .wallet div{
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 100%;
        border-right: 1px solid rgb(228, 228, 228);
    }
    .service{
        display: flex;
        justify-content: space-around;
        flex-direction: column;
        width: 100%;
        height: 210px;
        border-bottom: 10px solid #f2f2f2;
    }
    .service img{
        width: 25px;
    }
    .service div{
        flex: 1;
        display: flex;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid rgb(228, 228, 228);
    }
    .service p{
        padding-left: 10px;
    }
    .more{
        display: flex;
        justify-content: space-around;
        flex-direction: column;
        width: 100%;
        height: 100px;
        border-bottom: 10px solid #f2f2f2;
    }
    .more img{
        width: 25px;
    }
    .more div{
        flex: 1;
        display: flex;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid rgb(228, 228, 228);
    }
    .more p{
        padding-left: 10px;
    }
    h2{
        color:#ff8198;
    }
</style>>